package com.mysoap.simpledemo.client;

import java.rmi.RemoteException;


import com.mysoap.simpledemo.MyServiceStub;

public class MyServiceClient2 {
	public static void main(String[] args) throws RemoteException {
		String address = "http://localhost:8080/MySoap/services/myService";	
		MyServiceStub stub = new MyServiceStub(address);
		MyServiceStub.GetGreeting gg = new MyServiceStub.GetGreeting();
		gg.setName("zhangsan1");
		String str =stub.getGreeting(gg).get_return();
		System.out.println(str);
		
		MyServiceStub.Update up = new MyServiceStub.Update();
		up.setData("hello");
		stub.update(up);
	}
}
